<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ADXL362DMA: ADXL362DataBase Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">ADXL362DMA
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle"><div class="title">ADXL362DataBase Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_a_d_x_l362_d_m_a_8h_source.html">ADXL362DMA.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for ADXL362DataBase:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_a_d_x_l362_data_base.png" usemap="#ADXL362DataBase_map" alt=""/>
  <map id="ADXL362DataBase_map" name="ADXL362DataBase_map">
<area href="class_a_d_x_l362_data_ex.html" alt="ADXL362DataEx&lt; 128 &gt;" shape="rect" coords="0,56,190,80"/>
<area href="class_a_d_x_l362_data_ex.html" title="Class used to store data from the FIFO." alt="ADXL362DataEx&lt; BUF_SIZE &gt;" shape="rect" coords="200,56,390,80"/>
<area href="class_a_d_x_l362_data.html" title="Class used to store data from the FIFO." alt="ADXL362Data" shape="rect" coords="0,112,190,136"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a6ee55260527e289c0f3342afb3e1f610"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_x_l362_data_base.html#a6ee55260527e289c0f3342afb3e1f610">ADXL362DataBase</a> (uint8_t *<a class="el" href="class_a_d_x_l362_data_base.html#ae1c39f48882d71a039c70e685edd981b">buf</a>, size_t <a class="el" href="class_a_d_x_l362_data_base.html#a1b6b7b1baa7966ac7ecfebd2dbe7da5e">bufSize</a>)</td></tr>
<tr class="separator:a6ee55260527e289c0f3342afb3e1f610"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a816795d7a39de5a8c3f4c9e2dab469dd"><td class="memItemLeft" align="right" valign="top"><a id="a816795d7a39de5a8c3f4c9e2dab469dd" name="a816795d7a39de5a8c3f4c9e2dab469dd"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><b>~ADXL362DataBase</b> ()</td></tr>
<tr class="separator:a816795d7a39de5a8c3f4c9e2dab469dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af79bddb871c0bc729c20c60104a92302"><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_x_l362_data_base.html#af79bddb871c0bc729c20c60104a92302">readX</a> (size_t index) const</td></tr>
<tr class="separator:af79bddb871c0bc729c20c60104a92302"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23d13f6a78c78c740ce9fca6c2504037"><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_x_l362_data_base.html#a23d13f6a78c78c740ce9fca6c2504037">readY</a> (size_t index) const</td></tr>
<tr class="separator:a23d13f6a78c78c740ce9fca6c2504037"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa08b7528ae44ef2ca7314dd404740df8"><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_x_l362_data_base.html#aa08b7528ae44ef2ca7314dd404740df8">readZ</a> (size_t index) const</td></tr>
<tr class="separator:aa08b7528ae44ef2ca7314dd404740df8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ca8103999e2795a13edd475e72bce4b"><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_x_l362_data_base.html#a4ca8103999e2795a13edd475e72bce4b">readT</a> (size_t index) const</td></tr>
<tr class="separator:a4ca8103999e2795a13edd475e72bce4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1db3b0b5ce0128eec6139e6f681ce4b3"><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_x_l362_data_base.html#a1db3b0b5ce0128eec6139e6f681ce4b3">readSigned14</a> (const uint8_t *pValue) const</td></tr>
<tr class="separator:a1db3b0b5ce0128eec6139e6f681ce4b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:ae1c39f48882d71a039c70e685edd981b"><td class="memItemLeft" align="right" valign="top">uint8_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_x_l362_data_base.html#ae1c39f48882d71a039c70e685edd981b">buf</a></td></tr>
<tr class="separator:ae1c39f48882d71a039c70e685edd981b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb28fbf2cc8dbb6c3a7085b04c8c1ed1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_x_l362_data_base.html#aeb28fbf2cc8dbb6c3a7085b04c8c1ed1">storeTemp</a> = false</td></tr>
<tr class="separator:aeb28fbf2cc8dbb6c3a7085b04c8c1ed1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89532177b5cd902c7aab98ea9122aa5e"><td class="memItemLeft" align="right" valign="top"><a id="a89532177b5cd902c7aab98ea9122aa5e" name="a89532177b5cd902c7aab98ea9122aa5e"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>state</b> = <a class="el" href="class_a_d_x_l362_d_m_a.html#ae8464e92a6f07df8b601530b4e73bde8">ADXL362DMA::STATE_FREE</a></td></tr>
<tr class="separator:a89532177b5cd902c7aab98ea9122aa5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7015c87dce625ab6cae51e2558f2b2c"><td class="memItemLeft" align="right" valign="top"><a id="ae7015c87dce625ab6cae51e2558f2b2c" name="ae7015c87dce625ab6cae51e2558f2b2c"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>bytesRead</b> = 0</td></tr>
<tr class="separator:ae7015c87dce625ab6cae51e2558f2b2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47568f56131eda6c3f1200bb0d13d7a8"><td class="memItemLeft" align="right" valign="top"><a id="a47568f56131eda6c3f1200bb0d13d7a8" name="a47568f56131eda6c3f1200bb0d13d7a8"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>sampleSizeInBytes</b> = 0</td></tr>
<tr class="separator:a47568f56131eda6c3f1200bb0d13d7a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07c771b612709e9a383a1fe0ba260d7f"><td class="memItemLeft" align="right" valign="top"><a id="a07c771b612709e9a383a1fe0ba260d7f" name="a07c771b612709e9a383a1fe0ba260d7f"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>numSamplesRead</b> = 0</td></tr>
<tr class="separator:a07c771b612709e9a383a1fe0ba260d7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7148b04b9da8c599005ec6e9d8ef9eb"><td class="memItemLeft" align="right" valign="top"><a id="ae7148b04b9da8c599005ec6e9d8ef9eb" name="ae7148b04b9da8c599005ec6e9d8ef9eb"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>startOffset</b> = 0</td></tr>
<tr class="separator:ae7148b04b9da8c599005ec6e9d8ef9eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b6b7b1baa7966ac7ecfebd2dbe7da5e"><td class="memItemLeft" align="right" valign="top"><a id="a1b6b7b1baa7966ac7ecfebd2dbe7da5e" name="a1b6b7b1baa7966ac7ecfebd2dbe7da5e"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>bufSize</b> = 0</td></tr>
<tr class="separator:a1b6b7b1baa7966ac7ecfebd2dbe7da5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Base class for <a class="el" href="class_a_d_x_l362_data.html" title="Class used to store data from the FIFO.">ADXL362Data</a> and <a class="el" href="class_a_d_x_l362_data_ex.html" title="Class used to store data from the FIFO.">ADXL362DataEx</a>. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a6ee55260527e289c0f3342afb3e1f610" name="a6ee55260527e289c0f3342afb3e1f610"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ee55260527e289c0f3342afb3e1f610">&#9670;&#160;</a></span>ADXL362DataBase()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ADXL362DataBase::ADXL362DataBase </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>bufSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructor - You will not allocate one of these directly. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">buf</td><td>The buffer to store the data </td></tr>
    <tr><td class="paramname">bufSize</td><td>The size of the byffer in bytes </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a1db3b0b5ce0128eec6139e6f681ce4b3" name="a1db3b0b5ce0128eec6139e6f681ce4b3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1db3b0b5ce0128eec6139e6f681ce4b3">&#9670;&#160;</a></span>readSigned14()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int16_t ADXL362DataBase::readSigned14 </td>
          <td>(</td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>pValue</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read an signed 14-bit value out of the buffer. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pValue</td><td>The pointer to the first of two bytes from the FIFO</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>int16_t </dd></dl>

</div>
</div>
<a id="a4ca8103999e2795a13edd475e72bce4b" name="a4ca8103999e2795a13edd475e72bce4b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ca8103999e2795a13edd475e72bce4b">&#9670;&#160;</a></span>readT()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int16_t ADXL362DataBase::readT </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read a temperature value out of the buffer (if stored) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>The index to read from 0 = first instead</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>int16_t </dd></dl>

</div>
</div>
<a id="af79bddb871c0bc729c20c60104a92302" name="af79bddb871c0bc729c20c60104a92302"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af79bddb871c0bc729c20c60104a92302">&#9670;&#160;</a></span>readX()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int16_t ADXL362DataBase::readX </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read an x value out of the buffer. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>The index to read from 0 = first instead</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>int16_t </dd></dl>

</div>
</div>
<a id="a23d13f6a78c78c740ce9fca6c2504037" name="a23d13f6a78c78c740ce9fca6c2504037"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23d13f6a78c78c740ce9fca6c2504037">&#9670;&#160;</a></span>readY()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int16_t ADXL362DataBase::readY </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read an y value out of the buffer. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>The index to read from 0 = first instead</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>int16_t </dd></dl>

</div>
</div>
<a id="aa08b7528ae44ef2ca7314dd404740df8" name="aa08b7528ae44ef2ca7314dd404740df8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa08b7528ae44ef2ca7314dd404740df8">&#9670;&#160;</a></span>readZ()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int16_t ADXL362DataBase::readZ </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read an z value out of the buffer. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>The index to read from 0 = first instead</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>int16_t </dd></dl>

</div>
</div>
<h2 class="groupheader">Field Documentation</h2>
<a id="ae1c39f48882d71a039c70e685edd981b" name="ae1c39f48882d71a039c70e685edd981b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1c39f48882d71a039c70e685edd981b">&#9670;&#160;</a></span>buf</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t* ADXL362DataBase::buf</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Buffer size. Should be a multiple of the entry size. </p>
<p>The getEntrySize() method will return either 6 (without temperature) or 8 (with temperature) </p>

</div>
</div>
<a id="aeb28fbf2cc8dbb6c3a7085b04c8c1ed1" name="aeb28fbf2cc8dbb6c3a7085b04c8c1ed1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb28fbf2cc8dbb6c3a7085b04c8c1ed1">&#9670;&#160;</a></span>storeTemp</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ADXL362DataBase::storeTemp = false</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Whether to store temperature or not. </p>
<p>false=XYZ (6 bytes per sample), true=XYZT (includes temperature, 8 bytes per sample) </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/<a class="el" href="_a_d_x_l362_d_m_a_8h_source.html">ADXL362DMA.h</a></li>
<li>src/ADXL362DMA.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6
</small></address>
</body>
</html>
